package com.wlz.behavioral.strategy;

public class Context {
    //构造函数， 你要使用哪个妙计
    private IStrategy straegy;
    public Context(IStrategy strategy) {
        this.straegy = strategy;
    }

    public void operate() {
        this.straegy.operate();
    }
}